<?php
if(!defined("DS"))define("DS",DIRECTORY_SEPARATOR);
define("BASE_PATH", $_SERVER['DOCUMENT_ROOT'].DS);

//默认模块和操作名
define("DEFAULT_MODEL","Welcome");
define("DEFAUTL_ACTION", "index");
//模块和操作名的获取参数
if(!defined("MODEL_NAME"))define("MODEL_NAME", 'm');
if(!defined("ACTION_NAME"))define("ACTION_NAME", 'a');
//添加index.html
define('BUILD_DIR_SECURE',true);
/**
 * App下的文件目录结构名
 */
defined('APP_NAME') or define('APP_NAME', basename(dirname($_SERVER['SCRIPT_FILENAME'])));
if(!defined("APP_PATH"))define("APP_PATH", ".".DS.APP_NAME);
//公共函数
define("APP_COMMON", APP_PATH.DS."common");
//项目配置
define("APP_CONFIG", APP_PATH.DS."config");
//插件
define("APP_PLUS", APP_PATH.DS."plugins");
//模块
define("APP_MODULE", APP_PATH.DS."module");
//控制器
define("APP_CONTROL", APP_PATH.DS."controller");
//视图
define("APP_VIEW", APP_PATH.DS."view");
//日志
define("APP_LOG", APP_PATH.DS."log");
//缓存
define("APP_CACHE", APP_PATH.DS."cache");
//语言
define("APP_LANG",APP_PATH.DS."language");
